import request from "@/utils/request";
import qs from "qs";

// 查询执行历史列表
export function queryExecutionHistoryListByPage(params) {
  return request({
    url: "/datascan/b/executionhistory/queryPageList",
    method: "get",
    params,
  });
}

// 删除执行历史
export function deleteExecutionHistory(data) {
  return request({
    url: "/datascan/b/executionhistory/deleteByIds",
    method: "post",
    headers: {
      "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
    },
    data: qs.stringify(data),
  });
}

// 删除执行历史
export function queryTaskHistoryCount(data) {
  return request({
    url: "/datascan/b/homecount/queryTaskHistoryCount",
    method: "post",
    headers: {
      "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
    },
    data: qs.stringify(data),
  });
}

export function queryTaskHistoryCount1(data) {
  return request({
    url: "/datascan/b/homecount/queryTaskHistoryCount1",
    method: "post",
    headers: {
      "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
    },
    data: qs.stringify(data),
  });
}

// 查询历史任务
export function queryResAuditTaskHistoryById(data) {
  return request({
    url: "/datascan/b/executionhistory/queryResAuditTaskHistoryById",
    method: "post",
    headers: {
      "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
    },
    data,
  });
}

// 新
export function queryReportCount(params) {
  return request({
    url: "/datascan/b/scanresultstatistics/queryReportCount",
    method: "get",
    params,
  });
}

export function queryReportDiscerRule(params) {
  return request({
    url: "/datascan/b/scanresultstatistics/queryReportDiscerRule",
    method: "get",
    params,
  });
}
export function queryReportSensTableLevel(params) {
  return request({
    url: "/datascan/b/scanresultstatistics/queryReportSensTableLevel",
    method: "get",
    params,
  });
}
export function queryReportCoreTop(params) {
  return request({
    url: "/datascan/b/scanresultstatistics/queryReportCoreTop",
    method: "get",
    params,
  });
}
export function queryReportImpTop(params) {
  return request({
    url: "/datascan/b/scanresultstatistics/queryReportImpTop",
    method: "get",
    params,
  });
}
export function queryImpDataType(params) {
  return request({
    url: "/datascan/b/scanresultstatistics/queryImpDataType",
    method: "get",
    params,
  });
}
